/* 基础样式 */
.product-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background-color: #f8fafc;
    color: #334155;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 商品主区域 */
.product-main {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.product-gallery {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.main-image {
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.product-details {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.product-title {
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.price-section {
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-label {
    color: #64748b;
    font-size: 1rem;
}

.price-value {
    color: #3b82f6;
    font-size: 1.8rem;
    font-weight: 700;
}

.section-title {
    font-size: 1.2rem;
    color: #1e293b;
    margin: 1.5rem 0 1rem;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.product-description p {
    line-height: 1.6;
    color: #475569;
}

.specs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.spec-item {
    padding: 0.5rem 1rem;
    background-color: #f1f5f9;
    border-radius: 4px;
    color: #334155;
    font-size: 0.9rem;
}

.quantity-selector {
    margin: 2rem 0;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-control button {
    width: 36px;
    height: 36px;
    background-color: #e2e8f0;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    color: #475569;
    transition: background-color 0.2s;
}

.quantity-control button:hover {
    background-color: #cbd5e1;
}

.quantity-control input {
    width: 60px;
    height: 36px;
    text-align: center;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 1rem;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-buy, .btn-cart {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-buy {
    background-color: #3b82f6;
    color: white;
}

.btn-buy:hover {
    background-color: #2563eb;
}

.btn-cart {
    background-color: #e2e8f0;
    color: #334155;
}

.btn-cart:hover {
    background-color: #cbd5e1;
}

/* 评价区域 */
.product-reviews {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.reviews-list {
    margin-top: 1.5rem;
}

.review-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.review-user {
    font-weight: 600;
    color: #1e293b;
}

.review-date {
    color: #64748b;
    font-size: 0.9rem;
}

.review-content {
    color: #475569;
    line-height: 1.6;
}

.no-reviews {
    color: #64748b;
    text-align: center;
    padding: 2rem 0;
}

/* 模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.success-modal {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    max-width: 300px;
    width: 90%;
}

.success-icon {
    font-size: 2.5rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.success-message {
    font-size: 1.2rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.btn-modal {
    padding: 0.75rem 1.5rem;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
}

.btn-modal:hover {
    background-color: #2563eb;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-main {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}